package com.ricchieri.service.interf;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.filter.EmailToSendFilter;
import com.ricchieri.model.EmailToSend;

public interface IEmailToSendService {
	@Transactional(readOnly = true)
	public List<EmailToSend> getAllEmailToSend();
	
	@Transactional(readOnly = false)
	public void update(EmailToSend emailToSend);
	
	
	@Transactional(readOnly = false)
	public void add(EmailToSend emailToSend);

	public List<EmailToSend> getAllEmailToSendPaginatedByFilter(
			EmailToSendFilter emailToSendFilter, int startingAt);

	public int getAllEmailToSendPaginatedCountByFilter(
			EmailToSendFilter emailToSendFilter);
	
}
